package znet

import "zinxLearn/pkg/zinx/ziface"

var _ ziface.IRequest = (*ZRequest)(nil)

type ZRequest struct {
	conn ziface.IConnection //已经和客户端建立好的 链接
	msg  ziface.IMessage    //客户端请求的数据
}

func (r *ZRequest) ZConn() ziface.IConnection {
	return r.conn
}

func (r *ZRequest) ZData() ziface.IMessage {
	return r.msg
}
